<?php

function my_mb_convert($str)
{
    global $xoopsModuleConfig;
    if ($xoopsModuleConfig['allow_mb']) {
        $encode = mb_detect_encoding($str);
        if ($encode != "EUC-JP") {
            $str = mb_convert_encoding($str, 'EUC-JP', $encode);
        } 
    } 
    return $str;
}

?>